@import "./variables";

html,
body {
  height: 100%;
  color: $--color-text-regular;
  font-family: 'Microsoft Yahei', Helvetica, Arial, sans-serif;
  a {
    text-decoration: none;
    color: $--color-primary;
  }
}

* {
  box-sizing: border-box;
}

.el-icon-star-off-header {
  color: $--color-primary;
}

.m-searchPanel,
.m-searchListPanel {
  color: $--color-text-regular;
  .layout-1 {
    margin-bottom: 29px;
    color: $--color-text-primary;
    .leftLine {
      display: inline-block;
      width: 4px;
      height: 12px;
      background-color: $bg_A;
      margin-right: 8px;
    }
  }
}

.m-searchListPanel {
  .layout-1 {
    margin-bottom: 20px;
  }
  .layout-2 {
    a {
      color: #fff;
    }
    .el-button--text {
      margin-right: 30px;
    }
  }
}

.m-detailsHeader {
  //padding: 10px 32px 0 25px;
  position: relative;
  background-color: #fff;
  .m-searchListPanelA {
    position: absolute;
    top: 10px;
    .layout-1 {
      font-size: 18px;
    }
  }
  .el-tabs__header {
    padding-left: 90px;
  }
  .m-common-tab {
    background-color: $pageBg;
    padding: 4px 32px 0 0;
    .el-tabs__nav-scroll {
      height: 35px !important;
    }
  }
  .detailsContent {
    padding-right: 24px;
    padding-bottom: 24px;
    padding-left: 24px;
  }
}
.m-dataLayout {
  background-color: #fff;
  padding: 16px 24px 24px 24px;
}
.m-searchPanel {
  padding: 15px 24px 14px 24px;
  border-bottom: solid 20px $pageBg;
  background-color: #fff;
  /*.search-firstRow {
    @extend .flex;
    .firstRow-left {
      flex: 1;
    }
  }*/
  .searchBtns {
    text-align: right;
    padding-right: 15px;
  }
}

.m-searchPanelA {
  border-bottom: none;
  padding: 0;
  margin-bottom: 30px;
}
.m-dialog {
  .el-dialog__body {
    padding: 24px 20px;
  }
  .el-form {
    .el-form-item {
      margin-bottom: 19px;
    }
  }
  .el-form--inline {
    .el-form-item {
      box-sizing: border-box;
      width: 100%;
      display: flex;
      position: relative;
      .el-form-item__content {
        flex: 1;
        //position: static;
        .el-autocomplete {
          width: 100%;
        }
      }
    }
    .el-input,
    .el-select {
      width: 100%;
    }
    .last {
      margin-bottom: 0;
    }
  }
  .row-towItem {
    > div {
      width: 48%;
    }
  }
  .is-error {
    border-color: #f56c6c;
  }
  .is-success {
    border-color: #67c23a;
  }
  .uploadfilerow {
    .title {
      padding-left: 12px;
      color: $--color-info;
    }
    .el-form-item {
      border: none;
      .el-form-item__label {
        border: none;
      }
    }
  }
}

.m-pagination {
  margin-top: 16px;
  text-align: right;
}

.m-pageView {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  padding: $pagePadding;
}

.m-dataList {
  display: flex;
  flex-direction: column;
  flex: 1;
  .el-table {
    .el-table__header {
      th {
        padding-top: 7px;
        padding-bottom: 6px;
        height: 48px;
      }
    }
    .el-table__fixed-right {
      min-height: 48px;
    }
    .el-table__body {
      .el-table__row {
        td {
          padding-top: 7px;
          padding-bottom: 7px;
        }
      }
    }
  }
}
.m-pageViewNav {
  padding-left: 30px !important;
  .el-submenu,.el-menu-item {
    border: solid 1px transparent;
    border-bottom: none;
    a {
      display: inline-block;
      width: 100%;
      text-decoration: none;
      padding: 0 25px;
    }
  }
  .el-menu-item,
  .el-submenu__title {
    height: 40px !important;
    line-height: 40px !important;
    border-bottom: none !important;
  }
  .el-menu-item {
    position: relative;
    bottom: -1px;
    padding: 0;
  }
  li {
    &.is-active {
      position: relative;
      border: $--tab-border-line;
      border-bottom: none;
      border-radius: 4px 4px 0 0;
      background-color: $pageBg;
      &:before{
        content: '';
        width: 100%;
        height: 1px;
        background-color: $pageBg;
        position: absolute;
        bottom: -1px;
        left: 0;
      }
      &:hover {
        background-color: $pageBg !important;
      }
    }
    &:focus.is-active.is-focus:not(:active) {
      border-bottom: none !important;
    }
    &:hover {
      background-color: #fff !important;
      color: #3a8ee6 !important;
    }
    &:focus {
      background-color: $pageBg !important;
      border: $--tab-border-line !important;
    }
  }
 /* &.is-active {
    position: relative;
    border: $--tab-border-line;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    background-color: $pageBg;
    &:before{
      content: '';
      width: 100%;
      height: 1px;
      background-color: $pageBg;
      position: absolute;
      bottom: -1px;
    }
  }*/
  /*li {
    border: none;
    a {
      display: inline-block;
      width: 100%;
      text-decoration: none;
    }
  }*/
}

.pageView {
  overflow:auto;
  background: $pageBg;
  height: 100%;
  .m-common-tab {
    .el-tabs__content {
      overflow: hidden;
    }
    .el-tabs__nav-scroll {
      .is-active {
        background-color: transparent !important;
      }
    }
    .el-tabs__nav-wrap {
      .el-tabs__nav {
        position: absolute;
        right: 0;
        top: -9px;
      }
      &:after {
        height: 0;
      }
    }
    & > .el-tabs__header {
      border-bottom: none;
      .el-tabs__item {
        border-bottom: none;
      }
      .el-tabs__nav {
        border: none;
        border-radius: 0;
      }
      .el-tabs__item {
        border: none;
      }
    }
    .el-tabs__nav-scroll {
      position: relative;
      height: 45px;
      .is-active {
        color: $--color-primary-light-1;
      }
    }
  }
  .index-common-tab {
    height: 38px;
    .el-tabs__nav-wrap {
      .el-tabs__nav {
        position: static;
        .el-tabs__item {
          margin-right: 30px;
        }
      }
    }
  }
}

.m-leadTabFrom {
  padding-top: 44px;
  width: 600px;
  .row-towItem {
    > div {
      width: 48%;
    }
  }
  .el-form {
    .el-form-item {
      margin-bottom: 19px;
    }
  }
  .activeBtns {
    text-align: center;
  }
}

.flex {
  display: flex;
  justify-content: space-between;
  align-content: center;
}

.link-btn {
  a {
    color: $--color-primary;
    text-decoration: none;
  }
}

.m-CompUploadDialog {
  text-align: center;
  .words {
    margin-top: 8px;
    margin-bottom: 15px;
  }
  .el-progress {
    .el-progress__text {
      i {
        font-size: 30px;
      }
    }
  }
}

.m-featurebox {
  width: 500px;
  height: 500px;
  margin-bottom: 10px;
  overflow: auto;
}

.m-transferBox {
  width: 500px;
  margin-bottom: 20px;
}

.m-index {
  &>.tabList {
    background-color: $pageBg;
    .el-tabs__content {
      flex: 1;
      overflow: auto;
      @extend .scrollBar
    }
    .el-tabs__item {
      padding: 0 !important;
      a {
        padding: 0 20px;
      }
    }
    .el-tabs__nav-scroll {
      .el-tabs__nav {
        border: none;
      }
      background-color: #fff;
      .is-active {
        background-color: $pageBg;
        border-bottom-color: $pageBg !important;
      }
    }
    .el-tab-pane {
      height: 100%;
      padding: $pagePadding;
      padding-top: 10px;
    }
  }
}

.scrollBar {
 /* !* 设置滚动条的样式 *!
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    //display: none;
  }
  !* 滚动槽 *!
  &::-webkit-scrollbar-track {
    -webkit-box-shadow: rgba(0, 0, 0, 1);
    border-radius: 10px;
  }
  !* 滚动条滑块 *!
  &::-webkit-scrollbar-thumb {
    border-radius: 2px;
    background: #dcdfe6;
    -webkit-box-shadow: rgba(0, 0, 0, 1);
  }
  &::-webkit-scrollbar-thumb:window-inactive {
    background: #dcdfe6;
  }*/
}

#nprogress .bar {
  background-color: #FF2D89;
}

.el-popover {
  min-width: 120px !important;
}
.dialog-tipWords {
  padding-left: 10px;
  .tipTitle {
    margin-bottom: 5px;
    color: $--color-text-secondary;
  }
}
.input-with-select {
  .el-input-group__prepend {
    background-color: transparent;
  }
}
.m-aside {
  .el-menu-item,.el-submenu__title {
    font-size: $--notification-title-font-size;
  }
  .el-submenu {
    .el-menu-item {
      font-size: $--font-size-base;
      padding-left: 54px !important;
    }
  }
  .el-submenu__icon-arrow {
    font-size: $--notification-title-font-size;
    color: $--color-text-primary;
  }
  .el-menu--collapse  {
    .is-active {
      position: relative;
      border-right: solid 2px $bg_A;
      background-color: rgba($bg_A,.2);
    }
  }
  .silde-menu {
    border-right: none;
    .el-menu-item {
      line-height: 52px;
      height: 52px;
    }
    .el-submenu__title {
      line-height: 64px;
      height: 64px;
    }
    .svg-icon{
      font-size: 20px;
      margin-right: 10px;
      color: $--color-text-primary;
    }
    a {
      text-decoration: none;
      .is-active {
        position: relative;
        border-right: solid 2px $bg_A;
        background-color: rgba($bg_A,.2);
      }
    }
  }
}
.m-crumbs {
  .el-breadcrumb {
    .el-breadcrumb__inner {
      a,span {
        font-weight: 400;
        font-size: 12px;
      }
    }
  }
}
.m-fullContentDialog {
  position: relative;
  .el-dialog__header {
    display: none;
  }
  .el-dialog__body {
    padding: 0;
  }
  .el-input,
  .el-select{
    width: 100%;
  }
  .inputFullWidth {
    width: 100% !important;
  }
}
.el-form {
  .el-form-item {
    .is-disabled {
      .el-input__inner{
        color: $--color-text-regular;
      }
    }
  }
}
.m-errorLog {
  .item {
    border-bottom: solid 1px #F1F2F5;
    display: flex;
    padding: 11px 10px 9px 10px;
    .info {
      flex: 1;
    }
    .time {
      font-size: 12px;
      color: $--color-info;
    }
  }
}
.el-icon-star-off,.el-icon-star-on {
  cursor: pointer;
}
/*.el-tooltip__popper {
  display: none !important;
}*/
.el-menu-item {
  a {
    display: inline-block;
    width: 100%;
  }
}
.m-detialSearchTablePadding {
  padding: 24px;
  background-color: #fff;
}
.m-theFollowUp {
  padding: 24px;
}
.hiddenFilters {
  display: inline-block;
  width: 100%;
  height: 100%;
  &:after{
    content: '';
    position: absolute;
    left: 0;
    top: -15px;
    width: 100px;
    height: 48px;
    z-index: 30;
  }
  &+ .el-table__column-filter-trigger {
    display: none !important;
  }
}
